package com.bitrate.dagger.server.im.entity.tdengine;

import java.io.Serializable;
import java.sql.Timestamp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_record")
public class ChatRecord implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 发送方
	 */
	@TableField("from_id")
	private Integer fromId;

	/**
	 * 发送方
	 */
	@TableField("from_name")
	private String fromName;

	/**
	 * 接收方
	 */
	@TableField("to_id")
	private Integer toId;

	/**
	 * 接收方
	 */
	@TableField("to_name")
	private String toName;

	/**
	 * 消息体
	 */
	@TableField("message")
	private String message;

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Timestamp createTime;

}
